home *** CD-ROM | disk | FTP | other *** search
Wise script | 1999-04-26 | 4.3 KB | 200 lines |
- Document Type: WSE
- item: Global
- Version=5.0
- Title=Widget Software Installation
- Flags=01000100
- Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
- Japanese Font Name=MS Gothic
- Japanese Font Size=10
- Start Gradient=0 0 255
- End Gradient=0 0 0
- Windows Flags=00000001100000010000010000001000
- Message Font=MS Sans Serif
- Font Size=8
- Disk Filename=SETUP
- Patch Flags=0000000000000001
- Patch Threshold=85
- Patch Memory=4000
- FTP Cluster Size=20
- end
- item: Remark
- Text=This example shows how to set up a PROXY executable this will be called
- end
- item: Remark
- Text=the users select to run your application.
- end
- item: Remark
- end
- item: Get System Information
- Variable=CURRDATE
- end
- item: Read INI Value
- Variable=LASTMONTH
- Pathname=%WIN%\WIDGET.INI
- Section=UPGRADE
- Item=MONTH
- Default=01/01/96
- end
- item: Parse String
- Source=%CURRDATE%
- Pattern=2
- Variable1=CURRMONTH
- Flags=00001000
- end
- item: Display Message
- Title=A
- Text=%CURRMONTH%
- Text=%LASTMONTH%
- end
- item: Check Disk Space
- end
- item: If/While Statement
- Variable=CURRMONTH
- Value=%LASTMONTH%
- Flags=00000001
- end
- item: Display Message
- Title=New Version
- Text=You haven't checked our internet site for a new version since last month. Would you like to check it now?
- Flags=00001101
- end
- item: Set Variable
- Variable=UPGRADE_INI
- Value=ftp://ftp.glbs.com/upgrade/upgrade.ini
- end
- item: Remark
- end
- item: Remark
- Text=A COPY OF THIS INI FILE CAN BE FOUND IN THE EXAMPLE DIRECTORY
- end
- item: Copy Local File
- Source=%UPGRADE_INI%
- Destination=%TEMP%\upgrade.ini
- Description=Upgrade Information
- Local Path=C:\WIN95\DESKTOP\UPGRADE.INI
- Flags=0000000001000010
- end
- item: Remark
- end
- item: Read INI Value
- Variable=LASTVERSION
- Pathname=%WIN%\WIDGET.INI
- Section=UPGRADE
- Item=VERSION
- Default=1.0
- end
- item: Read INI Value
- Variable=RELEASEVERSION
- Pathname=%TEMP%\UPGRADE.INI
- Section=INFORMATION
- Item=ReleaseVersion
- Default=1.0
- end
- item: Read INI Value
- Variable=RELEASEDATE
- Pathname=%TEMP%\UPGRADE.INI
- Section=INFORMATION
- Item=ReleaseDate
- Default=01/01/96
- end
- item: If/While Statement
- Variable=RELEASEVERSION
- Value=%LASTVERSION%
- end
- item: Display Message
- Title=Software Upgrade
- Text=You are using the latest version of our WIDGET software. Check out our web site at www.widget.com for updates and new product announcments.
- Flags=00000100
- end
- item: Else Statement
- end
- item: Custom Dialog Set
- Name=Upgrade Download
- Flags=01110110
- item: Dialog
- Title=New Version
- Width=169
- Height=106
- Font Name=Helv
- Font Size=8
- item: Static
- Rectangle=3 23 162 65
- Create Flags=01010000000000000000000000000000
- Text=Release Date: %RELEASEDATE%
- Text=Release Version %RELEASEVERSION%
- Text=
- Text=Would you like to download and install the upgrade?
- end
- item: Static
- Rectangle=5 5 164 23
- Create Flags=01010000000000000000000000000000
- Flags=0000000000000001
- Name=Arial
- Font Style=-21 0 0 0 400 0 0 0 0 3 2 1 34
- Text=NEW VERSION AVAILABLE!
- end
- item: Push Button
- Rectangle=31 67 66 82
- Variable=DOUPGRADE
- Value=YES
- Create Flags=01010000000000010000000000000000
- Text=YES
- end
- item: Push Button
- Rectangle=93 68 128 83
- Variable=DOUPGRADE
- Value=NO
- Create Flags=01010000000000010000000000000000
- Text=NO
- end
- end
- end
- item: If/While Statement
- Variable=DOUPGRADE
- Value=YES
- end
- item: Set Variable
- Variable=UPGRADE_EXE
- Value=ftp://ftp.glbs.com/upgrade/widgetup.exe
- end
- item: Copy Local File
- Source=%UPGRADE_EXE%
- Destination=%TEMP%\widgetup.exe
- Description=Upgrade
- Local Path=C:\WIN95\CALC.EXE
- Flags=0000000001000010
- end
- item: Execute Program
- Pathname=%TEMP%\WIDGETUP.EXE
- Flags=00000010
- end
- item: Edit INI File
- Pathname=%WIN%\WIDGET.INI
- Settings=[UPGRADE]
- Settings=VERSION=%RELEASEVERSION%
- Settings=
- end
- item: End Block
- end
- item: End Block
- end
- item: End Block
- end
- item: Edit INI File
- Pathname=%WIN%\WIDGET.INI
- Settings=[UPGRADE]
- Settings=MONTH=%CURRMONTH%
- Settings=
- end
- item: End Block
- end
- item: Read INI Value
- Variable=EXECUTE
- Pathname=%WIN%\WIDGET.INI
- Section=UPGRADE
- Item=EXE
- end
- item: Execute Program
- Pathname=%EXECUTE%
- end
-